package com.ruoyi.cms.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章分类对象 biz_category
 *
 * @author lorry
 * @date 2020-11-29
 */
public class Category extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 上级分类
     */
    @Excel(name = "上级分类")
    private Long pid;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String name;

    /**
     * 繁体名称
     */
    @Excel(name = "繁体名称")
    private String tName;

    /**
     * 英文名称
     */
    @Excel(name = "英文名称")
    private String enName;

    /**
     * 分类介绍
     */
    @Excel(name = "分类介绍")
    private String description;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;

    /**
     * 图标
     */
    @Excel(name = "图标")
    private String icon;

    /**
     * 平台
     */
    @Excel(name = "平台")
    private Integer platform;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer dataState;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pid", getPid())
                .append("name", getName())
                .append("tName", gettName())
                .append("enName", getEnName())
                .append("description", getDescription())
                .append("sort", getSort())
                .append("icon", getIcon())
                .append("platform", getPlatform())
                .append("dataState", getDataState())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
